@extends('backend.template.bootstrap')
@section('content')
<div id="page-wrapper" >
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
					用户管理 <small>Members.<i class="fa fa-binoculars"></i></small>
                </h1>
            </div>
        </div>
        <!-- /. ROW  -->
        <div class="row">
            <div class="col-md-12">
                <!-- Advanced Tables -->
                <div class="panel panel-default">
                    <div class="panel-body">
						{!! Form::open(array('method' => 'get', 'url' => 'backend/members', 'class' => 'form-inline')) !!}
							<div class="form-group">
			 					<label>用户名</label>
                            	{!! Form::text('username',  Input::get('username'), array('class' => 'form-control')) !!}
							</div>
							<div class="form-group">
								<label>手机号</label>
                            	{!! Form::text('cellphone',  Input::get('cellphone'), array('class' => 'form-control')) !!}
							</div>
							<div class="form-group">
								<label>邮箱</label>
                            	{!! Form::text('email',  Input::get('email'), array('class' => 'form-control')) !!}
							</div>
							<div class="form-group">
								<label>性别</label>
                            	{!! Form::select('gender', array('' => '全部', 'm' => '男', 'f' => '女'), Input::get('gender'), array('class' => 'form-control')) !!}
							</div>
							<button type="submit" class="btn btn-primary">立即查找</button>
						{!! Form::close() !!}
						<br />
						@foreach($members as $member)
		                    <div class="col-md-3 col-sm-12 col-xs-12">
		                        <div class="panel panel-primary text-center no-boder">
		                            <div class="panel-left pull-left">
		                            	<img alt="" src="{{ $member->imgUrl() }}" width="100%">
		                            </div>
		                            <div class="panel-right pull-right text-left">
										<h4><b>{{ $member->username }} {!! $member->gender_ex() !!}</b></h4>
		                            	<span><span class="glyphicon glyphicon-phone" style="width: 20px;"></span>  {{ $member->cellphone }}</span><br />
		                            	<span><span class="fa fa-envelope-o" style="width: 20px;"></span>  {{ $member->email }}</span><br />
		                            	<span><span class="fa fa-calendar" style="width: 20px;"></span>  {{ $member->created_at->format('Y-m-d h:i:s') }}</span>
		                            </div>
		                        </div>
		                    </div>
						@endforeach
                    </div>
                </div>
                <!--End Advanced Tables -->
            </div>
        </div>
    </div>
    <!-- /. PAGE INNER  -->

</div>
@endsection